package org.openwork.portlet.skillmanagement.service;

import com.liferay.portal.kernel.util.BooleanWrapper;
import com.liferay.portal.kernel.util.ClassLoaderProxy;
import com.liferay.portal.kernel.util.IntegerWrapper;
import com.liferay.portal.kernel.util.LongWrapper;
import com.liferay.portal.kernel.util.NullWrapper;
import com.liferay.portal.kernel.util.ShortWrapper;


public class SkillUserLocalServiceClp implements SkillUserLocalService {
    private ClassLoaderProxy _classLoaderProxy;

    public SkillUserLocalServiceClp(ClassLoaderProxy classLoaderProxy) {
        _classLoaderProxy = classLoaderProxy;
    }

    public org.openwork.portlet.skillmanagement.model.SkillUser addSkillUser(
        org.openwork.portlet.skillmanagement.model.SkillUser skillUser)
        throws com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(skillUser);

        if (skillUser == null) {
            paramObj0 = new NullWrapper(
                    "org.openwork.portlet.skillmanagement.model.SkillUser");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("addSkillUser",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (org.openwork.portlet.skillmanagement.model.SkillUser) ClpSerializer.translateOutput(returnObj);
    }

    public org.openwork.portlet.skillmanagement.model.SkillUser createSkillUser(
        org.openwork.portlet.skillmanagement.service.persistence.SkillUserPK skillUserPK) {
        Object paramObj0 = ClpSerializer.translateInput(skillUserPK);

        if (skillUserPK == null) {
            paramObj0 = new NullWrapper(
                    "org.openwork.portlet.skillmanagement.service.persistence.SkillUserPK");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("createSkillUser",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (org.openwork.portlet.skillmanagement.model.SkillUser) ClpSerializer.translateOutput(returnObj);
    }

    public void deleteSkillUser(
        org.openwork.portlet.skillmanagement.service.persistence.SkillUserPK skillUserPK)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(skillUserPK);

        if (skillUserPK == null) {
            paramObj0 = new NullWrapper(
                    "org.openwork.portlet.skillmanagement.service.persistence.SkillUserPK");
        }

        try {
            _classLoaderProxy.invoke("deleteSkillUser",
                new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }
    }

    public void deleteSkillUser(
        org.openwork.portlet.skillmanagement.model.SkillUser skillUser)
        throws com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(skillUser);

        if (skillUser == null) {
            paramObj0 = new NullWrapper(
                    "org.openwork.portlet.skillmanagement.model.SkillUser");
        }

        try {
            _classLoaderProxy.invoke("deleteSkillUser",
                new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }
    }

    @SuppressWarnings("unchecked")
    public java.util.List dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
        throws com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(dynamicQuery);

        if (dynamicQuery == null) {
            paramObj0 = new NullWrapper(
                    "com.liferay.portal.kernel.dao.orm.DynamicQuery");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("dynamicQuery",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (java.util.List) ClpSerializer.translateOutput(returnObj);
    }

    @SuppressWarnings("unchecked")
    public java.util.List dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
        int end) throws com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(dynamicQuery);

        if (dynamicQuery == null) {
            paramObj0 = new NullWrapper(
                    "com.liferay.portal.kernel.dao.orm.DynamicQuery");
        }

        Object paramObj1 = new IntegerWrapper(start);

        Object paramObj2 = new IntegerWrapper(end);

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("dynamicQuery",
                    new Object[] { paramObj0, paramObj1, paramObj2 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (java.util.List) ClpSerializer.translateOutput(returnObj);
    }

    @SuppressWarnings("unchecked")
    public java.util.List dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
        int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(dynamicQuery);

        if (dynamicQuery == null) {
            paramObj0 = new NullWrapper(
                    "com.liferay.portal.kernel.dao.orm.DynamicQuery");
        }

        Object paramObj1 = new IntegerWrapper(start);

        Object paramObj2 = new IntegerWrapper(end);

        Object paramObj3 = ClpSerializer.translateInput(orderByComparator);

        if (orderByComparator == null) {
            paramObj3 = new NullWrapper(
                    "com.liferay.portal.kernel.util.OrderByComparator");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("dynamicQuery",
                    new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (java.util.List) ClpSerializer.translateOutput(returnObj);
    }

    public long dynamicQueryCount(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
        throws com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(dynamicQuery);

        if (dynamicQuery == null) {
            paramObj0 = new NullWrapper(
                    "com.liferay.portal.kernel.dao.orm.DynamicQuery");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("dynamicQueryCount",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return ((Long) returnObj).longValue();
    }

    public org.openwork.portlet.skillmanagement.model.SkillUser getSkillUser(
        org.openwork.portlet.skillmanagement.service.persistence.SkillUserPK skillUserPK)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(skillUserPK);

        if (skillUserPK == null) {
            paramObj0 = new NullWrapper(
                    "org.openwork.portlet.skillmanagement.service.persistence.SkillUserPK");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("getSkillUser",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (org.openwork.portlet.skillmanagement.model.SkillUser) ClpSerializer.translateOutput(returnObj);
    }

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> getSkillUsers(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new IntegerWrapper(start);

        Object paramObj1 = new IntegerWrapper(end);

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("getSkillUsers",
                    new Object[] { paramObj0, paramObj1 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser>) ClpSerializer.translateOutput(returnObj);
    }

    public int getSkillUsersCount()
        throws com.liferay.portal.kernel.exception.SystemException {
        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("getSkillUsersCount",
                    new Object[0]);
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return ((Integer) returnObj).intValue();
    }

    public org.openwork.portlet.skillmanagement.model.SkillUser updateSkillUser(
        org.openwork.portlet.skillmanagement.model.SkillUser skillUser)
        throws com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(skillUser);

        if (skillUser == null) {
            paramObj0 = new NullWrapper(
                    "org.openwork.portlet.skillmanagement.model.SkillUser");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("updateSkillUser",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (org.openwork.portlet.skillmanagement.model.SkillUser) ClpSerializer.translateOutput(returnObj);
    }

    public org.openwork.portlet.skillmanagement.model.SkillUser updateSkillUser(
        org.openwork.portlet.skillmanagement.model.SkillUser skillUser,
        boolean merge)
        throws com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(skillUser);

        if (skillUser == null) {
            paramObj0 = new NullWrapper(
                    "org.openwork.portlet.skillmanagement.model.SkillUser");
        }

        Object paramObj1 = new BooleanWrapper(merge);

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("updateSkillUser",
                    new Object[] { paramObj0, paramObj1 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (org.openwork.portlet.skillmanagement.model.SkillUser) ClpSerializer.translateOutput(returnObj);
    }

    public org.openwork.portlet.skillmanagement.model.SkillUser addSkillUser(
        long auditUserId, long userId, long skillId, short experience)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new LongWrapper(auditUserId);

        Object paramObj1 = new LongWrapper(userId);

        Object paramObj2 = new LongWrapper(skillId);

        Object paramObj3 = new ShortWrapper(experience);

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("addSkillUser",
                    new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (org.openwork.portlet.skillmanagement.model.SkillUser) ClpSerializer.translateOutput(returnObj);
    }

    public org.openwork.portlet.skillmanagement.model.SkillUser updateSkillUser(
        long auditUserId, long userId, long skillId, short experience)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new LongWrapper(auditUserId);

        Object paramObj1 = new LongWrapper(userId);

        Object paramObj2 = new LongWrapper(skillId);

        Object paramObj3 = new ShortWrapper(experience);

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("updateSkillUser",
                    new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (org.openwork.portlet.skillmanagement.model.SkillUser) ClpSerializer.translateOutput(returnObj);
    }

    public java.util.List<com.liferay.portal.model.User> searchBySkillIds(
        long[] ids)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(ids);

        if (ids == null) {
            paramObj0 = new NullWrapper("[J");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("searchBySkillIds",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (java.util.List<com.liferay.portal.model.User>) ClpSerializer.translateOutput(returnObj);
    }

    public int searchCountBySkillIds(long[] ids)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = ClpSerializer.translateInput(ids);

        if (ids == null) {
            paramObj0 = new NullWrapper("[J");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("searchCountBySkillIds",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return ((Integer) returnObj).intValue();
    }

    public int searchCountByUserId(long userId)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new LongWrapper(userId);

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("searchCountByUserId",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return ((Integer) returnObj).intValue();
    }

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> searchByUserId(
        long userId, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new LongWrapper(userId);

        Object paramObj1 = new IntegerWrapper(start);

        Object paramObj2 = new IntegerWrapper(end);

        Object paramObj3 = ClpSerializer.translateInput(orderByComparator);

        if (orderByComparator == null) {
            paramObj3 = new NullWrapper(
                    "com.liferay.portal.kernel.util.OrderByComparator");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("searchByUserId",
                    new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser>) ClpSerializer.translateOutput(returnObj);
    }

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> searchByUserId(
        long userId)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new LongWrapper(userId);

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("searchByUserId",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser>) ClpSerializer.translateOutput(returnObj);
    }

    public int searchCountBySkillId(long skillId)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new LongWrapper(skillId);

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("searchCountBySkillId",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return ((Integer) returnObj).intValue();
    }

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> searchBySkillId(
        long skillId)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new LongWrapper(skillId);

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("searchBySkillId",
                    new Object[] { paramObj0 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser>) ClpSerializer.translateOutput(returnObj);
    }

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> searchBySkillId(
        long skillId, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new LongWrapper(skillId);

        Object paramObj1 = new IntegerWrapper(start);

        Object paramObj2 = new IntegerWrapper(end);

        Object paramObj3 = ClpSerializer.translateInput(orderByComparator);

        if (orderByComparator == null) {
            paramObj3 = new NullWrapper(
                    "com.liferay.portal.kernel.util.OrderByComparator");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("searchBySkillId",
                    new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser>) ClpSerializer.translateOutput(returnObj);
    }

    public int searchCountBySkillId(long skillId, int value)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new LongWrapper(skillId);

        Object paramObj1 = new IntegerWrapper(value);

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("searchCountBySkillId",
                    new Object[] { paramObj0, paramObj1 });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return ((Integer) returnObj).intValue();
    }

    public java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser> searchBySkillId(
        long skillId, int value, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.PortalException,
            com.liferay.portal.kernel.exception.SystemException {
        Object paramObj0 = new LongWrapper(skillId);

        Object paramObj1 = new IntegerWrapper(value);

        Object paramObj2 = new IntegerWrapper(start);

        Object paramObj3 = new IntegerWrapper(end);

        Object paramObj4 = ClpSerializer.translateInput(orderByComparator);

        if (orderByComparator == null) {
            paramObj4 = new NullWrapper(
                    "com.liferay.portal.kernel.util.OrderByComparator");
        }

        Object returnObj = null;

        try {
            returnObj = _classLoaderProxy.invoke("searchBySkillId",
                    new Object[] {
                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
                    });
        } catch (Throwable t) {
            if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
                throw (com.liferay.portal.kernel.exception.PortalException) t;
            }

            if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
                throw (com.liferay.portal.kernel.exception.SystemException) t;
            }

            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            } else {
                throw new RuntimeException(t.getClass().getName() +
                    " is not a valid exception");
            }
        }

        return (java.util.List<org.openwork.portlet.skillmanagement.model.SkillUser>) ClpSerializer.translateOutput(returnObj);
    }

    public ClassLoaderProxy getClassLoaderProxy() {
        return _classLoaderProxy;
    }
}
